<div id="center_bottomwrapper">
<div id="leftcontent">
  <div id="top_left">
    <div id="top_left1">
      <h1>Danh mục sản phẩm </h1>
    </div>
    <div id="top_left2">
      <div id="mnleft">
        <ul class="accordion">
			<?php
            if(isset($data['cate']) && $data['cate'] != NULL){
				foreach($data['cate'] as $val){
					echo "<li><a class='titlesidebar' href='".$val['cago_rewrite']."/ac".$val['cago_id'].".html' title='".$val['cago_name']."'>".$val['cago_name']."</a></li>";
				}
            }
            ?>
        </ul>
      </div>
    </div>
    <div id="top_left3"></div>
  </div>
  <!--End #top_left-->
  <div id="bottom_left">
    <div id="giohang"> <img src="<?php echo base_url; ?>public/images/bgtieudeleft.png" />
      <h1>Giỏ hàng của bạn</h1>
      <h2 style="padding-top: 50px;">Hiện có:
        <label style="color: #FF8000; font-weight: bold; font-size: 18px; padding-left: 10px;">
			<?php if(isset($_SESSION['cart'])){echo count($_SESSION['cart']);}else{echo "0";};?>
        </label>
        sản phẩm </h2>
      <h2 style="padding-top: 10px;">Tổng giá :
        <label style="color: #FF8000; font-weight: bold; font-size: 16px;">
        	<?php
				$total = 0;
				if(isset($_SESSION['cart']) && $_SESSION['cart'] != NULL){
					foreach($_SESSION['cart'] as $key => $value){
						$total_1 = ($value['price'] * $value['qty']); ;
						$total = $total + $total_1;
					}
					echo number_format($total);
				}else{
					echo "0";
				}
			?>
        </label>
        vnđ </h2>
      <a href="<?php echo base_url; ?>gio-hang.html">
      <img src="<?php echo base_url; ?>public/images/giohang.png"  style="padding-top: 122px; padding-left: 130px;"/></a> </div>
    <div id="hotro"> <img src="<?php echo base_url; ?>public/images/bgtieudeleft2.png" />
      <h1>Hỗ trợ trực tuyến</h1>
      <h2 style="padding-top: 50px;">Nhân viên hỗ trợ 1:</h2>
      <a style="position: relative;" href="ymsgr:sendim?bachnx92">
      <img style="top: -20px;" vspace="5" border="0" align="absmiddle" alt="Click để Chat với Admin !" src="http://opi.yahoo.com/online?u=bachnx92&amp;m=g&amp;t=1&amp;l=us" title="Click để Chat với hỗ trợ!"/></a>
      <h2>Nhân viên hỗ trợ 2:</h2>
      <a href="skype:northstar.vn?chat"><img style="top: -29px;" src="<?php echo base_url; ?>public/images/iconS.png" /></a>
      <h2>Hotline :</h2>
      <img src="<?php echo base_url; ?>public/images/hotline.png" style="padding-top: 140px ; padding-left: 55px;" /> </div>
    <div id="gocanh"> <img src="<?php echo base_url; ?>public/images/bgtieudeleft.png" />
      <h1>Góc ảnh của bé</h1>
    </div>
  </div>
  <!--End #bottom_left--> 
</div>
<!--End #leftcontent-->

<div id="rightcontent">
  <div class="bachnx_overflow" style="overflow: initial;">
	<?php
	if(isset($data['listnews']) && $data['listnews'] != NULL){
		foreach($data['listnews'] as $value){
  ?>
	<div class="news_list_new">
	  <a href="<?php echo base_url.'tin-tuc/'.$value['news_rewrite'].'/n'.$value['news_id'].'.html' ;?>" title="<?php echo $value['news_title']; ?>">
	  <img style="width:120px;height:80px;" src="<?php echo base_url."uploads/news/thumb/".$value['news_images'];?>" alt="<?php echo $value['news_title']; ?>" title="<?php echo $value['news_title']; ?>" /></a>
	  <h3 class="news_list_new_title"><a href="<?php echo base_url.'tin-tuc/'.$value['news_rewrite'].'/n'.$value['news_id'].'.html' ;?>" title="<?php echo $value['news_title']; ?>"><?php echo $value['news_title']; ?></a></h3>
	  <span class="news_dates">Cập nhật: <?php echo $value['news_date']; ?></span>
	  <p class="news_fulls"><?php echo $value['news_info']; ?></p>
	  <p class="news_rights"><a href="<?php echo base_url.'tin-tuc/'.$value['news_rewrite'].'/n'.$value['news_id'].'.html' ;?>" title="xem tiếp">» xem tiếp</a></p>
  </div>
	<div class="clss"></div>
	<?php } }else{echo "Tin tức chưa cập nhật...";}?>
    
    <div class="pagination">
        <div class="paging">
            <?php echo $data['pagelist'];?>
        </div>
    </div>
  </div>
</div>
<!--End #rightcontent--> 
</div>
<!--End #center_bottomwrapper-->